package main

import "fmt"

type User struct {
    UserName string `json:"user_name"`
    Password string `json:"password"`
}

func get(user *User){
    user.UserName  = "张三"
}

func main() {
    var user *User
    get(user)
    fmt.Println(user)
}
